package com.changgou.oauth.util;

import lombok.Getter;
import lombok.Setter;
import org.springframework.security.core.GrantedAuthority;
import org.springframework.security.core.userdetails.User;

import java.util.Collection;

@Setter
@Getter
public class UserJwt extends User {
    /**
     * 用户ID
     */
    private String id;
    /**
     * 用户名
     */
    private String name;

    /**
     * 公司
     */
    private String company;

    public UserJwt(String username, String password, Collection<? extends GrantedAuthority> authorities) {
        super(username, password, authorities);
    }
}
